package com.qunar.qcf.filter.codec;

import com.qunar.qcf.core.session.IoSession;

/**
 * An abstract {@link ProtocolEncoder} implementation for those who don't have any
 * resources to dispose.
 *
 */
public abstract class ProtocolEncoderAdapter implements ProtocolEncoder {
    /**
     * Override this method dispose all resources related with this encoder.
     * The default implementation does nothing.
     */
    public void dispose(IoSession session) throws Exception {
        // Do nothing
    }
}
